var express = require('express');
var router = express.Router();
const {updataSeating} = require("../service/seatingService")//自行引对应service方法
router.patch('/:_id', async function (req, res, next) {
    console.log(req.params, req.body);
    const {status}=req.body
    const result = await updataSeating(req.params,{status})
    res.send(result)
  });

module.exports = router;